package cn.tutu.blockchain.wallet.entity;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 
 * <p>
 * Title: Wallet
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author 眭善峰
 * @date 2018年7月15日
 *
 */
public class Wallet {

	private String id;
	@Pattern(regexp = "^1[3|4|5|7|8][0-9]\\d{4,8}$", message = "手机号格式错误")
	private String phone;
	@NotBlank(message = "钱包地址不可为空")
	private String walletAddress; // 钱包地址
	@NotBlank(message = "钱包内容不可为空")
	private String accountContent; // 钱包内容
	@NotBlank(message = "钱包文件名称不可为空")
	private String accountFile_name; // 钱包文件名称
	private Date createDateTime; // 创建时间
	private Date lastUpdateDateTime; // 最后更新时间

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getWalletAddress() {
		return walletAddress;
	}

	public void setWalletAddress(String walletAddress) {
		this.walletAddress = walletAddress;
	}

	public String getAccountContent() {
		return accountContent;
	}

	public void setAccountContent(String accountContent) {
		this.accountContent = accountContent;
	}

	public String getAccountFile_name() {
		return accountFile_name;
	}

	public void setAccountFile_name(String accountFile_name) {
		this.accountFile_name = accountFile_name;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public Date getLastUpdateDateTime() {
		return lastUpdateDateTime;
	}

	public void setLastUpdateDateTime(Date lastUpdateDateTime) {
		this.lastUpdateDateTime = lastUpdateDateTime;
	}

}
